package com.nwpu.server.learning.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: YuXingZh
 * @Date: Created in 20:43 2022-04-01
 * @Description:
 */
//@Configuration
//public class MyRedissonConfig {
//
//    @Bean(destroyMethod = "shutdown")
//    public RedissonClient redissonClient() {
//        Config config = new Config();
//        config.useSingleServer().setAddress("redis://cnbiobank.top:6379").setPassword("123456");
//
//        RedissonClient redisson = Redisson.create(config);
//        return redisson;
//    }
//}